{if Phpfox::getUserId()==4}<div class="adminedit">
    <a id="edit-question" href="/index.php?do=/answer/question/add/id_{$aPopularQuestions[0].id}" target="_blank">Edit</a>    
    </div>{/if}
<div class="container-anser">
<div id="baseurl" style="display:none">{$baseurl}</div>

<div class="answer_content">
    <div class="user">
        <div class="image">        
        	<img id="image-question" src="/file/pic/answer/{$aPopularQuestions[0].question_image}" width="500" border="0" />
        </div>
        <div id="currentID">{$aPopularQuestions[0].id}</div>
        <div id="currentIndex">1</div>
    </div>
    <div class="top">
            <div class="aresult">
            <div class="ab">A</div>
            <a href="#" class="link">{if $random==1 }<span class="linktitlea">{$aPopularQuestions[0].title}</span><span class="result-game" id="result-a">1</span>{else}<span class="linktitlea">{$aPopularQuestions[1].title}</span><span class="result-game" id="result-a">0</span>{/if}</a>
            </div>
            <div class="bresult">
            <div class="ab">B</div>
            <a href="#" class="link">{if $random==2 }<span class="linktitleb">{$aPopularQuestions[0].title}</span><span class="result-game" id="result-b">1</span>{else}<span class="linktitleb">{$aPopularQuestions[1].title}</span><span class="result-game" id="result-b">0</span>{/if}</a>
            </div>
            <div id="timer">12</div>            
        </div>
    <div class="title">{phrase var='answer.popular_questions'}</div>    
    
    <!--<input type="button" onclick="location.href='{url link='answer.question' view='all' sort='most-viewed'}'"
           value="{phrase var='answer.view_more'}" class="button">-->
</div>
 
<div id="startbutton">
	<input name="start" type="button" id="startgame" onclick="startGame({$aPopularQuestions[0].id})"  class="start"value="{phrase var='answer.startgame'}" /> 
    <input type="hidden" id="playagaintext" value="{phrase var='answer.playagain'}" />
</div>

</div>

<div class="start-game">
 <div class="div-startab">
 <input name="starta" id="starta" class="startab" onclick="checkResult('A',{$aPopularQuestions[0].id})" type="button" value="A" />
 <!--<input name="starta" class="startab" onclick="checkResult('A',{$aItem.id},{if $aPopularQuestions|@count == ($iIndex+1)}1{else}0{/if},{$iIndex})" type="button" value="A" />-->
 </div>
 <div class="div-or">OR</div>
 <div class="div-startb"> 
 <input name="startb" id="startb" class="startab" onclick="checkResult('B',{$aPopularQuestions[0].id})" type="button" value="B" />
<!-- <input name="startb" onclick="checkResult('B',{$aItem.id},{if $aPopularQuestions|@count == ($iIndex+1)}1{else}0{/if},{$iIndex})" class="startab" type="button" value="B" />-->
 </div> 
 <div class="div-point">0</div>

 <div class="clr"></div>
<span id="result-true">{phrase var='answer.answertrue'}</span><span id="result-false">{phrase var='answer.answerfalse'}</span> 
 <div id="hideMsg" style="float:right; padding-right:20px;">
<span style="color:red; font-weight:bold">5</span>
</div>
</div>
<!--<div onclick="getRandomQuestion(6);">ABC</div>-->
<div id="mp3true" style="display:none;">
	<audio controls>
  		<source src="/file/static/true.mp3" type="audio/mpeg">
	</audio>
</div>
<div id="mp3false" style="display:none;">
	<audio controls>
  		<source src="/file/static/false.mp3" type="audio/mpeg">
	</audio>
</div>
<!--<div id"countdownGame"></div>
<div onClick="countDownGame('countdownGame',0,5);">Click</div>-->


